<div id="weather_search_result" class="subscription subscription_search_result gradient shadow round">
	<div class="subs_content">
		
		 <table class="now subs_bg_gradient gradient round shadow"> 
		 	<tr>
				<td class="city_name" rowspan="2"><%= @weather['location']['city'] %></td>
				<td rowspan='2'><img src='<%= @weather['forecast']['now']['icon'] %> '/></td> 
				<td><strong><%= @weather['forecast']['now']['temperature'] %> &deg;C</strong></td> 
				<td><%= link_to image_tag("delete.png"), '#', :id => "close_weather_dashboard", :class => "destroy"  %>
				</td>
			</tr> 
			 <tr> 
				 <td><%= @weather['forecast']['today']['high_temperature'] %> &deg;C</td> 
				 <td class="temp_low"><%= @weather['forecast']['today']['low_temperature'] %> &deg;C</td> 
			 </tr> 
		 </table> 
		<%= render :partial => 'weathers/forecast' %> 
		
		<% if signed_in? %>
		
			<%= form_tag('/subscription/create', :method => :post , :remote => true)%>
			<%= hidden_field :subscription, :user_id,  'value' => current_user.id %>
			<%= hidden_field :subscription, :city,  'value' => @weather['location']['city'] %>
			<%= hidden_field :subscription, :country,  'value' => '?' %>
			<%= hidden_field :subscription, :zip_code,  'value' => @weather['location']['zip_code'] %>
			<%= hidden_field :subscription, :lat,  'value' => @weather['location']['latitude'] %>
			<%= hidden_field :subscription, :long,  'value' => @weather['location']['longitude'] %>
			<%= hidden_field :subscription, :collapsed,  'value' => false %>
			<%= submit_tag "Ajouter", :id => "subscription_add_submit", :class => "button buttongreen shadow round" %>
		
		<% end %>
	
	</div>	
</div>